package org.tang.springcloudvv.request;

public class RequestThreadLocal {

    private static ThreadLocal<RequestEvent> currentEventPath = new ThreadLocal<RequestEvent>();

    public static RequestEvent getEventPath() {
        return currentEventPath.get();
    }

    public static void setEventPath(RequestEvent eventPath) {
        currentEventPath.set(eventPath);
    }

    public static void clear() {
        currentEventPath.remove();
    }
}
